<?php
defined('_JEXEC') or die;

require_once __DIR__ . '/helper.php';

$layout = $params->get('layout', 'default');
$class_sfx	= htmlspecialchars($params->get('moduleclass_sfx'));
$categories = modBakery_CategoryHelper::loadCategories();
if (!empty($categories))
{
	$startLevel = reset($categories)->getParent()->level;
	require JModuleHelper::getLayoutPath('mod_bakery_categories', $layout);
}

